package com.altekis.kanbankaze.shared.events;

import com.altekis.kanbankaze.shared.Task;
import com.google.gwt.event.shared.GwtEvent;

public class CardEditedEvent extends GwtEvent<CardEditedEventHandler>{
	public static Type<CardEditedEventHandler> TYPE = new Type<CardEditedEventHandler>();
	public Task task;
	public CardEditedEvent(Task editedTask) {
		task = editedTask;
	}

	@Override
	public Type<CardEditedEventHandler> getAssociatedType() {
	    return TYPE;
	}

	@Override
	protected void dispatch(CardEditedEventHandler handler) {
		handler.onCardEdited(this);
	}
}
